//判断是否是数组

let arr = [1, 2];


console.log(Object.prototype.toString.call(arr));
console.log('length' in arr);
console.log(arr instanceof Array === true);